import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import {registerMicroApps,start} from './qiankun'
const apps = [
  {
    name:'vueApp', //应用名
    entry:'//localhost:10000', //默认会加载这个html解析里面的js，动态的执行（子应用必须支持跨域）
    container:'#vue', //将子应用挂载到id=vue的元素上
    activeRule:'/vue', //激活规则，访问/vue的时候挂载到id=vue的元素上
  },
  {
    name:'reactApp',
    entry:'//localhost:20000',
    container:'#react',
    activeRule:'/react'
  }
]
debugger
registerMicroApps(apps); //注册
start();//启动


Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
